/**
 * Copyright (c) Enalean, 2014-2016. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

div.sftp_directory_listing {
    $header-background-color: #F6F6F6;
    $header-border-color: #E9E9E9;
    $header-text-color: #686868;
    $hover-background-color: #E6F2F9;
    $hover-border-color: #D1E7F3;
    $header-hover-radius: 3px;

    .nav {
        margin: 10px 0 0;

        li > i {
            font-size: 1.2em;
            font-weight: bold;
            line-height: 2.1em;
            margin: 0 10px;
        }
    }

    table {
        cursor: default;
        border-collapse: separate;

        thead {
            background-color: $header-background-color;

            tr {
                td {
                    font-size: 0.85em;
                    padding: 4px 5px;
                    color: $header-text-color;
                    border-top: 1px solid $header-border-color;
                    border-bottom: 1px solid $header-border-color;

                    &:first-child {
                        border-top-left-radius: $header-hover-radius;
                        border-bottom-left-radius: $header-hover-radius;
                        border-left: 1px solid $header-border-color;
                    }
                    &:last-child {
                        border-top-right-radius: $header-hover-radius;
                        border-bottom-right-radius: $header-hover-radius;
                        border-right: 1px solid $header-border-color;
                    }
                }
            }
        }

        tbody {
            tr {
                td {
                    background-color: #FFFFFF;
                    border: 1px solid #FFFFFF;
                }

                &:nth-child(2n) {
                    td {
                        background-color: #F9F9F9;
                        border: 1px solid #F9F9F9;
                    }
                }

                &:hover {
                    td {
                        background-color: $hover-background-color;
                        border-top: 1px solid $hover-border-color;
                        border-bottom: 1px solid $hover-border-color;
                        border-left: 1px solid $hover-background-color;
                        border-right: 1px solid $hover-background-color;

                        &:first-child {
                            border-top-left-radius: $header-hover-radius;
                            border-bottom-left-radius: $header-hover-radius;
                            border-left: 1px solid $hover-border-color;
                        }
                        &:last-child {
                            border-top-right-radius: $header-hover-radius;
                            border-bottom-right-radius: $header-hover-radius;
                            border-right: 1px solid $hover-border-color;
                        }
                    }
                }

                td {
                    padding: 4px 25px 4px 5px;

                    &:first-child {
                        min-width: 400px;
                    }

                    .fa-folder {
                        color: #58A8D7;
                    }

                    a {
                        color: #1F8BCA;

                        &:hover {
                            text-decoration: none;
                        }
                    }
                }
            }
        }
    }
}
